package com.ynunicom.dc.dingdingcontractapp.dto.exception;

import lombok.Getter;
import lombok.Setter;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: jinye.Bai
 * @date: 2020/5/25 9:07
 */
@Setter
@Getter
public class GetUserIdException extends Exception {
    private Integer code;

    public GetUserIdException(int code, String message) {
        super(message);
        this.code = code;
    }

    public GetUserIdException(String message) {
        super(message);
        this.code = HttpServletResponse.SC_BAD_GATEWAY;
    }
}
